package net.wanho.shop.mapper;

import net.wanho.shop.po.GoodsPics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 商品图片表 Mapper 接口
 * </p>
 *
 * @author 猛虎王
 * @since 2024-12-24
 */
@Mapper
public interface GoodsPicsMapper {

    List<GoodsPics> select(GoodsPics goodsPics);

    GoodsPics selectById(Serializable picsId);

    void insert(GoodsPics goodsPics);

    void update(GoodsPics goodsPics);

    void deleteById(Serializable picsId);

    void deleteByIds(String[] split);

    void deleteBatchIds(@Param("goodsId") Integer goodsId, @Param("picsIds") List<Integer> picsIds);
}
